package com.lhh.adminlte.service;

import com.lhh.adminlte.entity.Qrcode;

import java.util.Date;
import java.util.List;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/5/30 11:13
 * @Description:
 */
public interface IQRCodeService {

    List<Qrcode> selectQrCodes(String batch, String value, String phone, Integer status, Date useDateStart, Date useDateEnd, Date createDateStart, Date createDateEnd, int displayStart, int displayLength);

    long countQrCode(String batch, String value, String phone, Integer status, Date useDateStart, Date useDateEnd, Date createDateStart, Date createDateEnd);

    boolean addQrCode(String batch, int bonus, String value, Date createDate);

    boolean deleteQrCode(int id);

    boolean updateQrCode(int id, int status);

    boolean useQrCode(String value, String phone, Date useDate);
}
